import server from './server';

export const withdrawCoinList = (data) => { // 提币币种
    return server.get('/withdraw/code_list', {
        params: data
    })
}

export const createWithdrawAddress = (data) => { // 添加提币地址
    return server.post('/address/add', data)
}

export const getWithdrawAddress = (data) => { // 提币地址列表
    return server.get('/address/show', {
        params: data
    })
}

export const deleteWithdrawAddress = (data) => { //删除提币地址
    return server.post( '/address/delete',
         data
    )
}


export const applyWithdraw = (data) => { //用户提币
    return server.post( '/withdraw/apply_withdraw',
         data
    )
}

export const walletRecharge = (data) => { //用户钱包充值
    return server.get('/recharge/address', {
        params: data
    })
}

export const coinList = (data) => { //充币币种
    return server.get('/recharge/code_list', {

        params: data
    })
}
export const index = (data) => { //用户充币明细
    return server.get('/recharge/record', {
        params: data
    })
}


export const withdrawLog = (data) => { //提币明细
    return server.get('/withdraw/withdraw_log', {
        params: data
    })
}

export const revokewithdraw = (data) => { //提币撤销
    return server.post( '/withdraw/revoke_withdraw', {
        params: data
    })
}


export const checkBalance = (data) => { //提币手续费
    return server.get('/withdraw/show', {
        params: data
    })
}


export const userMoneyLog = (data) => { //资金明细(其他)
    return server.get('/account/deal_flow', {
        params: data,
    })
}
export const AccountList = (data) => { //划转账户列表
    return server.get('/transfer/info', {
        params: data,
    })
}
export const transferID = (data) => { //划转币种ID
    return server.get('/transfer/allow_code', {
        params: data,
    })
}
export const transfer = (data) => { //划转
    return server.post( '/transfer/action', data)
}

export const giftasset = (data) => { //赠金资产
    return server.get('/cashgift/gift_asset', {
        params: data,
    })
}

export const giftlist = (data) => { //赠金流水记录
    return server.get('/cashgift/gift_list', {
        params: data,
    })
}

